<!--合同应收账查询-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div    id="content">
    <section class="content-header">
        <h1>
            <i class="fa fa-dashboard"></i>
            <strong>应收账查询</strong>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
            <li class="active">应收账查询</li>
            <li class="active">合同应收账查询</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <i class="fa fa-th-list"></i>
                        <h4 class="box-title">合同应收账查询</h4>
                    </div>
                    <div class="box-body">
                        <div class="form-inline">
                            <div class="input-group">
                                <input type="hidden" class="form-control" id="zdType" name="zdType" th:value="${zdType}" />
                                <input type="hidden" class="form-control" id="hk" name="hk" th:value="${hk}" />
                                <span class="input-group-btn">
                                	<input type="date" class="form-control" id="startDate" name="startDate" th:value="${startDate}" style="width:11%"/>
									<span class="form-control">至</span>
									<input type="date" class="form-control" id="endDate" name="endDate" th:value="${endDate}" style="width:11%" />
									<span class="form-control">合同号</span>
									<input class="form-control" type="text" id="Contract" name="Contract" style="width:12%"/>
									<span class="form-control">订货单位</span>
									<input class="form-control" type="text" id="cOrderUnit" name="cOrderUnit" style="width:12%"/>
									<button type="button" id="searchBtn" name="search" class="btn btn-info searchBtn" >查询</button>
									<span class="form-control" style="font-size:1px">应收账总金额</span>
									<input class="form-control" type="text" id="thisYearChanceCount" name="thisYearChanceCount" readonly="readonly" style="width: 12%"/>
									<span class="form-control"  style="font-size:1px">回款总金额</span>
									<input class="form-control" type="text" id="thisYearChanceSuccessCount" name="thisYearChanceSuccessCount" readonly="readonly" style="width: 12%"/>
						
							   		<!-- <button type="button" id="resetBtn" name="reset" class="btn btn-info resetBtn">撤消</button> -->
                                          <!-- <button type="button" class="btn btn-info import">excel导出</button> -->
							   </span>
                            </div>
                        </div>
                    </div>
                    <div class="box box-body" style="width:100%;overflow-x:scroll;">
                    	<table class="mytable dataTable table-bordered text-center table-striped table-hover"  width="50%" align="center">
	            			<tbody>
	            				<tr style= " width: 100%">
	            					<!-- <td width="20%">
	                               	 年份<select multiple="multiple" class="form-control" style="width:100%" id="nian">
										</select>
				                   	</td>
	            					<td width="20%">
	                                                                                         月份<select multiple="multiple" class="form-control" style="width:100%" id="yue">
										</select>
				                   	</td> -->
	                         		<td width="20%">部门-片区
										<select id="orderArea" multiple="multiple" class="form-control" style="width:100%">
											<optgroup label="销售处">
												<option th:each="SaleOrderArea:${SaleOrderAreas}" 
											    th:value="${SaleOrderArea.superiorArea}"
											  th:text="${SaleOrderArea.areaName}" th:selected="${SaleOrderArea.isSelected}"></option>
											</optgroup>
											<optgroup label="成套处">
												<option th:each="CompleteOrderArea:${CompleteOrderAreas}" 
											    th:value="${CompleteOrderArea.superiorArea}"
											  th:text="${CompleteOrderArea.areaName}" th:selected="${CompleteOrderArea.isSelected}"></option>
											</optgroup>
											<optgroup label="外贸处">
												<option th:each="ForeignOrderArea:${ForeignOrderAreas}" 
											    th:value="${ForeignOrderArea.superiorArea}"
											  th:text="${ForeignOrderArea.areaName}" th:selected="${ForeignOrderArea.isSelected}"></option>
											</optgroup>
										</select>
			                        </td>
	             					<td width="20%">行业
						              	<select multiple="multiple" id="industryInfo" name="industryInfo" class="form-control" style="width:100%">
						              		<!-- <option th:selected="${industryInfo1.equals('无')}" value="无">无</option> -->
						              		<option th:each="industryInfo:${industryInfos}"
												  th:text="${industryInfo.title}"></option>
												  <!-- th:selected="${industryInfo.title.equals(industryInfo1)}"></option> -->
				                         </select>
				                   	</td>
	             					<td width="20%">合同金额
			                          		<select multiple="multiple" id="totalSum" name="totalSum" class="form-control" style="width:100%">
						              			<option value="100万以下">100万以下</option>
						              			<option value="100～500万">100～500万</option>
						              			<option value="500～1000万">500～1000万</option>
						              			<option value="1000万以上">1000万以上</option>
				                         	</select>
				                   	</td>
	             					<!-- <td width="20%"> 生产状态
						              	<select multiple="multiple" id="generateState" name="generateState" class="form-control" style="width:100%">
						              		<option value="未排产">未排产</option>
						              		<option value="已排产">已排产</option>
						              		<option value="已入库">已入库</option>
						              		<option value="已发运">已发运</option>
				                         </select>
				                   	</td> -->
				                   	<td width="20%">合同状态
											<select multiple="multiple" id="contractState" name="contractState" class="form-control" style="width:100%">
							              		<!-- <option value="">所有</option> -->
							              		<option value="正常">正常</option>
				                          		<option value="终止">终止</option>
				                          		<option value="暂停">暂停</option>
					                         </select>
			                        </td>
	            					<td width="20%">合同类型
											<select multiple="multiple" id="contractType" name="contractType"  class="form-control" style="width:100%">
							              		<!-- <option value="">所有</option>  -->
				                          		<option value="项目合同" >项目合同</option>
												<option value="备件合同" >备件合同</option>
												<option value="备泵合同" >备泵合同</option>
												<option value="维修合同" >维修合同</option>
					                         </select>
			                        </td>
	            				</tr>
	            			</tbody>
	            		</table>
                        <table id="dataTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="6000px" align="center">
                            <thead>
                            <tr>
                                <th width="1%">序号</th> <!-- 1 -->
                                <th>订货单位</th> <!-- 2 -->
                                <th>状态</th> <!-- 2 -->
                                <th>合同总额</th> <!-- 3 -->
                                <th>项目名称</th> <!-- 4 -->
                                <th width="2%">合同类型</th> <!-- 2 -->
                                <th width="2%">行业</th> <!-- 2 -->
                                <th>厂内合同号</th> <!-- 5 -->
                                <th>用户合同号</th> <!-- 6 -->
                                <th>产品分类</th> <!-- 7 -->
                                <th>考核分类</th> <!-- 8 -->
                                <th>回款总负责</th> <!-- 9 -->
                                <th width="3%">片区</th> <!-- 10 -->
                                <th width="4%">付款方式</th> <!-- 11 -->
                                <th>签订时间</th> <!-- 12 -->
                                <th>交货时间</th> <!-- 13 -->
                                <th>开票时间</th> <!-- 14 -->
                                <th>未启票未到期应收款项</th> <!-- 15 -->
                                <th>已启票未到期应收款项</th> <!-- 16 -->
                                <th>未到期应收预付款</th> <!-- 17 -->
                                <th>未到期应收进度款</th> <!-- 18 -->
                                <th>未到期应收发货款</th> <!-- 19 -->
                                <th>未到期应收验收款</th> <!-- 20 -->
                                <th>未到期应收调试款</th> <!-- 21 -->
                                <th>未到期应收质保金</th> <!-- 22 -->
                                <th>未到期应收运费</th> <!-- 23 -->
                                <th>本月应收预付款</th> <!-- 24 -->
                                <th>本月应收进度款</th> <!-- 25 -->
                                <th>本月应收发货款</th> <!-- 26 -->
                                <th>本月应收验收款</th> <!-- 27 -->
                                <th>本月应收调试款</th> <!-- 28 -->
                                <th>本月应收质保金</th> <!-- 29 -->
                                <th>本月应收运费</th> <!-- 30 -->
                                <th>前期应收预付款</th> <!-- 31 -->
                                <th>前期应收进度款</th> <!-- 32 -->
                                <th>前期应收发货款</th> <!-- 33 -->
                                <th>前期应收验收款</th> <!-- 34 -->
                                <th>前期应收调试款</th> <!-- 35 -->
                                <th>前期应收质保金</th> <!-- 36 -->
                                <th>前期应收运费</th> <!-- 37 -->
                                <th>本期启票金额</th> <!-- 38 -->
                                <th>期末余额</th> <!-- 39 -->
                                <th>未启票合同期末可收额</th> <!-- 40 -->
                                <th>已收预收货款</th>  <!-- 41 -->
                                <th>本月回款额</th> <!-- 42 -->
                                <th>无法回收额</th><!-- 43 -->
                                <th>上年未到期应收款</th> <!-- 44 -->
                                <th>当月新增合同额</th> <!-- 45 -->
                                <th>税金</th> <!-- 46 -->
                                <th>账面余额</th> <!-- 47 -->
                            </tr>
                            <!-- <tr>
                                <th width="1%"><input type="text" readonly="readonly" class="form-control"/></th> 1
                                <th><input type="text" id="cOrderUnit-search" class="form-control"/></th> 2
                                <th>
                                	<select class="form-control" type="text" id="state-search" name="orderArea-search">
										<option value="">全部</option>
										<option>正常</option>
										<option>暂停</option>
										<option>终止</option>
									</select>
                                </th> 2
                                <th><input type="text" id="nTotalSum-search" class="form-control"/></th> 3
                                <th><input type="text" id="cProjectName-search" class="form-control"/></th> 4
                                <th width="2%">
                                	<select class="form-control" type="text" id="contractType-search" name="orderArea-search">
										<option></option>
										<option>项目合同</option>
										<option>备件合同</option>
										<option>备泵合同</option>
										<option>维修合同</option>
									</select>
                                </th> 4
                                <th><input type="text" id="cSupplierCode-search" class="form-control"/></th> 5
                                <th><input type="text" id="cDemanderCode-search" class="form-control"/></th> 6
                                <th><input type="text" id="cProductKind-search" class="form-control"/></th> 7
                                <th><input type="text" id="cCheckKind-search" class="form-control"/></th> 8
                                <th><input type="text" id="cDutyOfficer-search" class="form-control"/></th> 9
                                <th width="3%"><input type="text" id="cOrderArea-search" class="form-control"/></th> 10
                                <th width="4%"><input type="text" id="cPayType-search" class="form-control"/></th> 11
                                <th><input type="Date" id="dSignedDate-search" class="form-control"/></th> 12
                                <th><input type="Date" id="dDeliveryDate-search" class="form-control"/></th> 13
                                <th><input type="Date" id="dLateestPayCheckDate-search" class="form-control"/></th> 14
                                <th><input type="text" id="nWQPWDQYSSum-search" class="form-control"/></th> 15
                                <th><input type="text" id="nYQPWDQYSSum-search" class="form-control"/></th> 16
                                <th><input type="text" id="nWDQYSYFKSum-search" class="form-control"/></th> 17
                                <th><input type="text" id="nWDQYSJDKSum-search" class="form-control"/></th> 18
                                <th><input type="text" id="nWDQYSFHKSum-search" class="form-control"/></th> 19
                                <th><input type="text" id="nWDQYSYSKSum-search" class="form-control"/></th> 20
                                <th><input type="text" id="nWDQYSTSKSum-search" class="form-control"/></th> 21
                                <th><input type="text" id="nWDQYSZBKSum-search" class="form-control"/></th> 22
                                <th><input type="text" id="nWDQYSYFSum-search" class="form-control"/></th> 23
                                <th><input type="text" id="nNowMonthYSYFKSum-search" class="form-control"/></th> 24
                                <th><input type="text" id="nNowMonthYSJDKSum-search" class="form-control"/></th> 25
                                <th><input type="text" id="nNowMonthYSFHKSum-search" class="form-control"/></th> 26
                                <th><input type="text" id="nNowMonthYSYSKSum-search" class="form-control"/></th> 27
                                <th><input type="text" id="nNowMonthYSTSKSum-search" class="form-control"/></th> 28
                                <th><input type="text" id="nNowMonthYSZBKSum-search" class="form-control"/></th> 29
                                <th><input type="text" id="nNowMonthYSYFSum-search" class="form-control"/></th> 30
                                <th><input type="text" id="nBeforeYSYFKSum-search" class="form-control"/></th> 31
                                <th><input type="text" id="nBeforeYSJDKSum-search" class="form-control"/></th> 32
                                <th><input type="text" id="nBeforeYSFHKSum-search" class="form-control"/></th> 33
                                <th><input type="text" id="nBeforeYSYSKSum-search" class="form-control"/></th> 34
                                <th><input type="text" id="nBeforeYSTSKSum-search" class="form-control"/></th> 35
                                <th><input type="text" id="nBeforeYSZBKSum-search" class="form-control"/></th> 36
                                <th><input type="text" id="nBeforeYSYFSum-search" class="form-control"/></th> 37
                                <th><input type="text" id="nNowMonthPayCheckSum-search" class="form-control"/></th> 38
                                <th><input type="text" id="nEndingBalanceSum-search" class="form-control"/></th> 39
                                <th><input type="text" id="nWQPContractEndingBalanceSum-search" class="form-control"/></th> 40
                                <th><input type="text" id="nYSYHKSum-search" class="form-control"/></th> 41
                                <th><input type="text" id="nNowMonthGetPaySum-search" class="form-control"/></th> 42
                                <th><input type="text" id="nWFHSKSum-search" class="form-control"/></th> 43
                                <th><input type="text" id="nBeforeYearWDQYSKSum-search" class="form-control"/></th> 44
                                <th><input type="text" id="nNowMonthContractAddSum-search" class="form-control"/></th> 45
                                <th><input type="text" id="nTax-search" class="form-control"/></th> 46
                                <th><input type="text" id="nBookBalanceSum-search" class="form-control"/></th> 47
                            </tr>
                            <tr>
                                <th width="1%"><input type="text" readonly="readonly" class="form-control"/></th> 1
                                <th><input type="text" id="cOrderUnit-end-search" readonly="readonly" class="form-control"/></th> 2
                                <th><input type="text" id="state-end-search" readonly="readonly" class="form-control"/></th> 2
                                <th><input type="text" id="nTotalSum-end-search" class="form-control"/></th> 3
                                <th><input type="text" id="cProjectName-end-search" readonly="readonly" class="form-control"/></th> 4
                                <th width="2%">
                                	<select class="form-control" type="text" id="contractType-end-search" name="orderArea-search" disabled="disabled">
										<option></option>
										<option>项目合同</option>
										<option>备件合同</option>
										<option>备泵合同</option>
										<option>维修合同</option>
									</select>
                                </th> 4
                                <th><input type="text" id="cSupplierCode-end-search" readonly="readonly" class="form-control"/></th> 5
                                <th><input type="text" id="cDemanderCode-end-search" readonly="readonly" class="form-control"/></th> 6
                                <th><input type="text" id="cProductKind-end-search" readonly="readonly" class="form-control"/></th> 7
                                <th><input type="text" id="cCheckKind-end-search" readonly="readonly" class="form-control"/></th> 8
                                <th><input type="text" id="cDutyOfficer-end-search" readonly="readonly" class="form-control"/></th> 9
                                <th width="3%"><input type="text" id="cOrderArea-end-search" readonly="readonly" class="form-control"/></th> 10
                                <th width="4%"><input type="text" id="cPayType-end-search" readonly="readonly" class="form-control"/></th> 11
                                <th><input type="Date" id="dSignedDate-end-search" class="form-control"/></th> 12
                                <th><input type="Date" id="dDeliveryDate-end-search" class="form-control"/></th> 13
                                <th><input type="Date" id="dLateestPayCheckDate-end-search" class="form-control"/></th> 14
                                <th><input type="text" id="nWQPWDQYSSum-end-search" class="form-control"/></th> 15
                                <th><input type="text" id="nYQPWDQYSSum-end-search" class="form-control"/></th> 16
                                <th><input type="text" id="nWDQYSYFKSum-end-search" class="form-control"/></th> 17
                                <th><input type="text" id="nWDQYSJDKSum-end-search" class="form-control"/></th> 18
                                <th><input type="text" id="nWDQYSFHKSum-end-search" class="form-control"/></th> 19
                                <th><input type="text" id="nWDQYSYSKSum-end-search" class="form-control"/></th> 20
                                <th><input type="text" id="nWDQYSTSKSum-end-search" class="form-control"/></th> 21
                                <th><input type="text" id="nWDQYSZBKSum-end-search" class="form-control"/></th> 22
                                <th><input type="text" id="nWDQYSYFSum-end-search" class="form-control"/></th> 23
                                <th><input type="text" id="nNowMonthYSYFKSum-end-search" class="form-control"/></th> 24
                                <th><input type="text" id="nNowMonthYSJDKSum-end-search" class="form-control"/></th> 25
                                <th><input type="text" id="nNowMonthYSFHKSum-end-search" class="form-control"/></th> 26
                                <th><input type="text" id="nNowMonthYSYSKSum-end-search" class="form-control"/></th> 27
                                <th><input type="text" id="nNowMonthYSTSKSum-end-search" class="form-control"/></th> 28
                                <th><input type="text" id="nNowMonthYSZBKSum-end-search" class="form-control"/></th> 29
                                <th><input type="text" id="nNowMonthYSYFSum-end-search" class="form-control"/></th> 30
                                <th><input type="text" id="nBeforeYSYFKSum-end-search" class="form-control"/></th> 31
                                <th><input type="text" id="nBeforeYSJDKSum-end-search" class="form-control"/></th> 32
                                <th><input type="text" id="nBeforeYSFHKSum-end-search" class="form-control"/></th> 33
                                <th><input type="text" id="nBeforeYSYSKSum-end-search" class="form-control"/></th> 34
                                <th><input type="text" id="nBeforeYSTSKSum-end-search" class="form-control"/></th> 35
                                <th><input type="text" id="nBeforeYSZBKSum-end-search" class="form-control"/></th> 36
                                <th><input type="text" id="nBeforeYSYFSum-end-search" class="form-control"/></th> 37
                                <th><input type="text" id="nNowMonthPayCheckSum-end-search" class="form-control"/></th> 38
                                <th><input type="text" id="nEndingBalanceSum-end-search" class="form-control"/></th> 39
                                <th><input type="text" id="nWQPContractEndingBalanceSum-end-search" class="form-control"/></th> 40
                                <th><input type="text" id="nYSYHKSum-end-search" class="form-control"/></th> 41
                                <th><input type="text" id="nNowMonthGetPaySum-end-search" class="form-control"/></th> 42
                                <th><input type="text" id="nWFHSKSum-end-search" class="form-control"/></th> 43
                                <th><input type="text" id="nBeforeYearWDQYSKSum-end-search" class="form-control"/></th> 44
                                <th><input type="text" id="nNowMonthContractAddSum-end-search" class="form-control"/></th> 45
                                <th><input type="text" id="nTax-end-search" class="form-control"/></th> 46
                                <th><input type="text" id="nBookBalanceSum-end-search" class="form-control"/></th> 47
                            </tr> -->
                            </thead>
                            <tbody>
                            
                            </tbody>
                        </table>
                   </div>
                </div>
           </div>
        </div>
    </section>
    <script th:src="@{/accountsreceivable/accountsreceivableindex.js}"></script>
</div>
</body>
</html>